<!--
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<div class="ddp-box-part ddp-editor" *ngIf="isShow" style="margin-right: 125px;">
  <div class="ddp-box-title">
    {{'msg.dp.th.expression' | translate}}<em class="ddp-icon-essential"></em>
  </div>
  <div class="ddp-wrap-datainput">
    <rule-suggest-input #derive_value_input
      [formula]="deriveVal"
      [command]="'derive'" [cmdArg]="'value'" 
      [tabIndex]="2" [placeholder]="'msg.dp.th.expression.ph' | translate"
      [fields]="fields"
      (onChange)="deriveVal = $event" ></rule-suggest-input>
  </div>
  <a href="javascript:" class="ddp-btn-bg" (click)="openPopupFormulaInput()"><em class="ddp-icon-editor"></em>{{'msg.dp.btn.advanced.editor' | translate }}</a>
</div>
<!-- //part -->

<!-- part -->
<div class="ddp-box-part" style="padding : 0 35px;" *ngIf="isShow">
  <div class="ddp-box-title">
    {{'msg.dp.th.new-column-name' | translate}}<em class="ddp-icon-essential"></em>
  </div>
  <div class="ddp-wrap-datainput">
    <input type="text" class="ddp-input-typebasic" tabindex="3" placeholder="{{'msg.dp.th.new-column-name.ph' | translate}}" [(ngModel)]="deriveAs">
  </div>
</div>
<!-- //part -->
